package org.lora.biz.ou.exception;

import org.apache.log4j.Logger;
import org.lora.exception.LoraCoreException;
import org.lora.log4j.Log4jUtil;

public class LoraOrgUserException extends LoraCoreException {

	private static final long serialVersionUID = 1L;

	private String errorCode;

	protected Logger businessLogger = Log4jUtil.getBusinessLogger();

	public LoraOrgUserException() {
		super();
	}

	public LoraOrgUserException(String errorCode, String errorMessage) {
		super("[" + errorCode + "]" + errorMessage);
		businessLogger.error(this);
	}

	public String getErrorCode() {
		return errorCode;
	}

	public LoraOrgUserException(String message) {
		super(message);
	}

	public LoraOrgUserException(String message, Throwable cause) {
		super(message, cause);
	}

	public LoraOrgUserException(Throwable cause) {
		super(cause);
	}

}
